package UserInterface;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;

import java.io.File;
import java.net.URL;

public class Launcher extends Application
{
	@Override
	public void start(Stage stage) throws Exception {
		System.out.println();
		FXMLLoader loader = null;
		Pane pane = new Pane();
	    loader = new FXMLLoader(getClass().getClassLoader().getResource("Fxml/MainWindow.fxml"));
		pane = loader.load();
		MainWindow controller = loader.getController();
		controller.init();
		Scene scene = new Scene(pane);
		scene.getStylesheets().add(getClass().getClassLoader().getResource("Css/MainWindow.css").toExternalForm());
		stage.setScene(scene);
		stage.show();
	}

	public static void main(String[] args) {
		launch(args);
	}
}

